package com.example.yoga.mapper;

import com.example.yoga.entity.UsercomboStatus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.yoga.entity.UsercomboStatusVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liwenkai
 * @since 2021-03-26
 */
@Mapper
public interface UsercomboStatusMapper extends BaseMapper<UsercomboStatus> {

    @Select("SELECT `user`.userName,usercombo_status.ucsId,usercombo_status.userId,usercombo_status.`status`,usercombo_status.comboId,usercombo_status.applyTime,usercombo_status.checkTime FROM usercombo_status,`user` WHERE `user`.userId=usercombo_status.userId")
    List<UsercomboStatusVo> getCardComboList();
}
